package com.yc.bean;

import dev.langchain4j.model.output.structured.Description;
import org.springframework.stereotype.Component;

@Component
public class Student{
    @Description("学号")
    private String id;
    @Description("姓名")
    private String name;
    @Description("缺勤次数")
    private double AbsencesNumber;
    @Description("平时作业1")
    private double homeworks1;
    @Description("平时作业2")
    private double homeworks2;
    @Description("平时作业3")
    private double homeworks3;
    @Description("平时作业4")
    private double homeworks4;
    @Description("课堂表现")
    private double classPerformance;
    @Description("期末测试")
    private double finalTest;
    @Description("总评成绩")
    private double totalScore;
    @Description("成绩转化")
    private String score;

    @Override
    public String toString() {
        return "Student{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", AbsencesNumber='" + (int)Math.round(AbsencesNumber) + '\'' +
                ", homeworks1='" + (int)Math.round(homeworks1) + '\'' +
                ", homeworks2='" + (int)Math.round(homeworks2) + '\'' +
                ", homeworks3='" + (int)Math.round(homeworks3) + '\'' +
                ", homeworks4='" + (int)Math.round(homeworks4) + '\'' +
                ", classPerformance='" + (int)Math.round(classPerformance) + '\'' +
                ", finalTest='" + (int)Math.round(finalTest) + '\'' +
                ", totalScore='" + (int)Math.round(totalScore) + '\'' +
                ", score='" + score + '\'' +
                '}';
    }
}
